home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1987 July
/
1987-07.d64
/
s & e customizer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
73 lines
10 rem sam & ed customizer
20 rem copyright 1987 - compute! publications, inc. all rights reserved
30 poke 53280,2:poke 53281,12:bk=1
40 gosub 550
50 print"change colors (y/n)";:input a$:if a$<>"y" then 230
60 print"press spacebar to choose colors"
70 print"and then press return to select"
80 print"border color ";:gosub 600
90 bd=x:poke 53280,x
100 print"background color ";:gosub 600
110 bk=x:poke 53281,x:if bk=0 then poke 646,1
120 print"sam's body color ";:gosub 600
130 sb=x
140 print"sam's leg color ";:gosub 600
150 sl=x
160 print"ed's body color ";:gosub 600
170 eb=x
180 print"ed's leg color ";:gosub 600
190 el=x
200 poke 2431,bd:poke 2441,bk
210 poke 2461,sl:poke 2466,sb
220 poke 2471,el:poke 2476,eb
230 poke 53280,2:poke 53281,12:poke 646,0
240 gosub 550:print"change timer (y/n)";:input d$:if d$="y" then gosub 690
250 gosub 550:print"change messages (y/n)";:input a$:if a$<>"y" then 450
260 gosub550
270 print"upcoming event #1 (37 chars max.)":input a$
280 if len(a$)<37 then a$=a$+" ":goto 280
290 a$=left$(a$,37)
300 for y=1 to 37:nc=asc(mid$(a$,y,1)):if nc>63 then nc=nc-64
310 poke 2207+y,nc
320 next y
330 print"upcoming event #2 (37 chars max.)":input a$
340 if len(a$)<38 then a$=a$+" ":goto 340
350 a$=left$(a$,38)
360 for y=1 to 38:nc=asc(mid$(a$,y,1)):if nc>63 then nc=nc-64
370 poke 2245+y,nc
380 next y
390 print"upcoming event #3 (29 chars max.)":input a$
400 if len(a$)<29 then a$=a$+" ":goto 400
410 a$=left$(a$,29)
420 for y=1 to 29:nc=asc(mid$(a$,y,1)):if nc>63 then nc=nc-64
430 poke 2284+y,nc
440 next y
450 print"insert a new formatted disk":for d=1 to 1000:next
460 print" press any key to save custom sam & ed [146]"
470 get dh$
480 if dh$="" then 470
490 poke 44,8:poke 46,25
500 print"just a moment..."
510 print"saving custom sam & ed"
520 open 1,8,15,"s0:custom sam & ed":close 1
530 save"custom sam & ed",8
540 print"[147] press return to play sam & ed [146]":print"run[145][145][145]":end
550 print"[147][144]";:printspc(9)" sam & ed customizer [146]"
560 for m=1 to 10:print"":next
570 printspc(5)"[213][196][201] copyright 1987"
580 printspc(5)"[199]c[200] compute! publications inc."
590 printspc(5)"[202][198][203] all rights reserved":return
600 for x=0 to 15
610 poke 646,x:print" [146]";"[157]";:get a$:if a$=chr$(13) then poke 646,0:goto 670
620 if a$=chr$(32) then 640
630 goto 610
640 if x=15 then 600
650 next
660 goto 610
670 print:if bk=0 then poke 646,1
680 return
690 print"enter a number less than 10";:input h$
700 if h$="" then 700
710 h=val(h$)+176
720 poke 5714,176:poke 5719,h:return